package com.banggood.upms.service;

import com.banggood.upms.bean.po.Permission;
import com.banggood.upms.bean.po.User;
import com.banggood.upms.bean.po.UserTree;
import com.banggood.upms.bean.vo.UserPermissionVo;
import com.banggood.upms.bean.vo.UserTreeVo;

import java.util.List;

/**
 * @author XuChuangFeng
 */
public interface UserTreeService extends BaseService<UserTree> {
    List<UserTree> selectByUserIdAndTreeType(UserTreeVo vo);

    String adjustUserTrees(String treeType, String userId, List<UserTree> posForInsert, List<String> idsForRemove);

    String insertUserTrees(List<UserTree> posForInsert);

    String deleteAll(UserTreeVo vo);

    List<Permission> selectUserPerms(UserPermissionVo vo) throws Exception;

    List<User> selectUsersByTreeId(String id) throws Exception;
}
